import { request } from "@/request";

export async function fetchList(params) {
  return await request("/frictionPerformance/page", {
    method: "GET",
    params,
  });
}

export async function add(data) {
  return await request("/frictionPerformance/add", {
    method: "POST",
    data,
  });
}
export async function update(data) {
  return await request("/frictionPerformance/update", {
    method: "POST",
    data,
  });
}
export function remove(data) {
  return request("/frictionPerformance/deleteByIds", {
    method: "POST",
    data,
  });
}

export async function getInfo(params) {
  return await request("/frictionPerformance/data/list", {
    method: "GET",
    params,
  });
}
export async function exportExcel(data) {
  return await request("/frictionPerformance/data/export", {
    method: "POST",
    data,
  });
}
export async function getCurve(data) {
  return await request("/frictionPerformance/data/curve", {
    method: "POST",
    data,
  });
}

